﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="sheetWorkflowStart.aspx.cs" Inherits="WEB.sheetInfo.sheetWorkflowStart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    委托单启动
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <table width="100%">
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center">
                时间范围：<asp:TextBox ID="tbTimestart" runat="server" class="Wdate"></asp:TextBox>
                至<asp:TextBox ID="tbTimestop" runat="server" class="Wdate"></asp:TextBox>
                <asp:DropDownList ID="ddlasc" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlasc_SelectedIndexChanged">
                    <asp:ListItem Value="desc">降序</asp:ListItem>
                    <asp:ListItem Value="asc">升序</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:DropDownList ID="ddlQuery" runat="server" Style="text-align: right" Width="101px">
                    <asp:ListItem Value="CustomerName">客户名</asp:ListItem>
                    <asp:ListItem Value="goodsName">货物名称</asp:ListItem>
                    <asp:ListItem Value="ladingBillNO">提单号</asp:ListItem>
                    <asp:ListItem Value="shipname">船名</asp:ListItem>
                    <asp:ListItem Value="inspectionNo">报检单号</asp:ListItem>
                    <asp:ListItem Value="sheetID">单号</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="tbQuery" runat="server" Width="280px"></asp:TextBox>
                <asp:Button ID="btnQuery" runat="server" Text="  查 询" OnClick="btnQuery_Click" CssClass="Submit_Query" />
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="gvWorkFlowStart" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    CssClass="distance" DataKeyNames="sheetID" EnableTheming="True" BackColor="White"
                    BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" AllowPaging="True"
                    GridLines="Vertical" OnPageIndexChanging="gvWorkFlowStart_PageIndexChanging"
                    PageSize="20" ForeColor="Black" Width="650px">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="sheetID" HeaderText="委托单号">
                            <ItemStyle Font-Bold="True" Font-Size="Larger" ForeColor="#0066CC" />
                        </asp:BoundField>
                        <asp:BoundField DataField="typeID" HeaderText="业务类别" />
                        <asp:BoundField DataField="codeName1" HeaderText="进出口类别" />
                        <asp:BoundField DataField="CustomerName" HeaderText="公司名称" />
                        <asp:BoundField DataField="codeName" HeaderText="货物类型" />
                        <asp:BoundField DataField="agencyDate" HeaderText="委托日期" DataFormatString="{0:D}" />
                        <asp:BoundField DataField="inputDate" HeaderText="录入日期" DataFormatString="{0:D}" />
                        <asp:TemplateField AccessibleHeaderText="启动" ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="Button1" runat="server" CausesValidation="False" Text="启动" OnClientClick="return confirm('是否确认启动？')"
                                    OnClick="Button1_Click" CommandArgument='<%# Eval("sheetID") %>' CssClass="Submit_gv" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" Wrap="True" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center">
            </td>
        </tr>
    </table>
    <div class="descrption">
        <asp:Label ID="Label1" runat="server" Text="--备注：</br>--<font color=#0066CC>请记住委托单号，以便以后查询各项信息</font>">
        </asp:Label>
    </div>
</asp:Content>
